package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.Orders;
import com.guigu.pojo.Product;

import java.util.HashMap;


/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
public interface OrdersService extends IService<Orders> {
    Page<Orders> getAllOrder(HashMap<String, Object> map);

    Orders selectByOrderNo(String orderNo);

    Page<Orders> getOrderByMerchantIdOrConsumerId(HashMap<String, Object> map);

    Integer getMerchantOrderCountByMerchantId(Integer merchantId);

    Boolean cancelOrder(String orderNumber);

    Page<Orders> getAllocateOrder(HashMap<String, Object> map);
}
